package com.example.xuanmei.user.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "users")
public class User extends BaseEntity {
    @Column(unique = true, nullable = false)
    private String username;
    
    @Column(nullable = false)
    private String password;
    
    private String nickname;
    
    private String avatar;
    
    @Column(columnDefinition = "TEXT")
    private String description;
    
    private Long followers;  // 粉丝数
    private Long following;  // 关注数
    private Long likes;      // 获赞总数
}
